<?php
// +----------------------------------------------------------------------
// | saiadmin [ saiadmin快速开发框架 ]
// +----------------------------------------------------------------------
// | Author: your name
// +----------------------------------------------------------------------
namespace app\genQuestionGroup\validate;

use think\Validate;

/**
 * 问题分组验证器
 */
class SkiQuestionGroupListValidate extends Validate
{
    /**
     * 定义验证规则
     */
    protected $rule =   [
        'groupName' => 'require',
        'lang' => 'require',
        'appType' => 'require',
    ];

    /**
     * 定义错误信息
     */
    protected $message  =   [
        'groupName' => '问题分组名称必须填写',
        'lang' => 'app语言必须填写',
        'appType' => '所属APP必须填写',
    ];

    /**
     * 定义场景
     */
    protected $scene = [
        'save' => [
            'groupName',
            'lang',
            'appType',
        ],
        'update' => [
            'groupName',
            'lang',
            'appType',
        ],
    ];

}
